How to determine if an equation is linear